@import "../../styles/colors";

.home {
  .sub-header {
    padding: 20px;
    height: 40px;
    margin-bottom: 40px;

    .title {
      font-size: 16px;
      font-weight: 700;
    }

    .ant-btn.ant-btn-primary {
      position: absolute;
      right: 20px;
      top: 17px;
    }
  }

  .content {
    padding: 20px;

    .title {
      font-size: 14px;
      font-weight: 700;
    }

    .list-box {
      display: flex;
      flex-wrap: wrap;

      .small-item {
        overflow: hidden;
        display: flex;
        padding: 10px 10px 10px 20px;
        align-content: center;
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        margin: 10px 15px 10px 0;
        min-width: 350px;
        width: 32%;

        .icon-box {
          width: 30px;
          line-height: 38px;

          &:last-child {
            text-align: right;
          }
        }

        .detail {
          width: calc(100% - 60px);

          & > div {
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            word-break: break-all;

            &:first-child {
              font-size: 13px;
              font-weight: bold;
            }
          ;

            &:last-child {
              font-size: 12px;
            }
          ;
          }
        }
      }

      .big-item {
        border: 1px solid #d0d0d0;
        border-radius: 4px;
        margin: 10px 10px 10px 0;
        min-width: 300px;
        width: 32%;
        overflow: hidden;

        .img-box {
          height: 200px;
          padding: 10px;
          background-color: #efefef;

          img {
            display: inline-block;
            width: 100%;
            height: 100%;
            border-radius: 4px;
          }

          border-bottom: 1px solid #d0d0d0;
        }

        .small-item {
          border: none;
          border-right: 0;
          margin: 0;
          width: 100%;
        }
      }
    }

    .load-more {
      text-align: center;
      cursor: pointer;

      &.active {
        color: #2196f3;
      }
    }
  }
}

.button-list {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 10px;
  text-align: right;
  border-top: 1px solid #f0f0f0;
  background: #fff;

  .ant-btn {
    margin-left: 20px;
  }
}

.ant-modal-body {
  position: relative;
  padding: 0;

  .ant-form.ant-form-horizontal {
    max-height: 400px;
    overflow: scroll;
    padding: 24px;
    padding-bottom: 60px;
  }

  .form-dialog {
    .ant-space {
      .ant-space-item {
        &:first-child {
          width: 80%;
        }
      }
    }

  }

}
